From 73f870c2643eb7662fc4d37931338aab63fa8a51 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 16 Feb 2017 14:18:55 +0300 Subject: [PATCH] Revive dependency recompilation test --- tests/path.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/path.rs b/tests/path.rs index b0d9adb26..1b4594fe6 100644 --- a/tests/path.rs +++ b/tests/path.rs @@ -297,9 +297,17 @@ fn no_rebuild_dependency() { in [..]\n", p.url(), p.url()))); - // This time we shouldn't compile bar + + p.change_file("src/foo.rs", r#" + extern crate bar; + fn main() { bar::bar(); } + "#); + // Don't compile bar, but do recompile foo. assert_that(p.cargo("build"), - execs().with_stdout("")); + execs().with_stderr("\ + [COMPILING] foo v0.5.0 ([..])\n\ + [FINISHED] dev [unoptimized + debuginfo] target(s) \ + in [..]\n")); } #[test] -- 2.30.2